#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<windows.h>
void gotoxy(short x, short y) {
	COORD coord = { x, y };
	SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
void gotolove(int n) {
	printf("***\n");
	printf(" *\n");
	printf(" *\n");
	printf("***\n");

	for (int j = 0; j < 4; j++) {
		gotoxy(20, j);
		if (j == 3) {
			printf(" *** ");
		}
		else printf("*   *");
	}
	Sleep(1000);
	for (int i = 0; i < 4; i++) {
		gotoxy(n, i);
		if (i == 1) {
			printf("* *");
		}
		else if (i == 2) {
			printf(" * ");
		}
		gotoxy(25, 3);
	}
}
int main() {
	int n = 5;
	for (int i = 0; i < 3; i++) {
		gotolove(n);
		Sleep(1000);
		system("cls");
		n += 5;
	}
	Sleep(1000);
	system("color 04");
	printf("***     *   *     *   *\n");
	printf(" *     *** ***    *   *\n");
	printf(" *      *****     *   *\n");
	printf("***       *        *** \n");
	return 0;
}